﻿using System.ComponentModel.Composition;
using System.Windows;
using Microsoft.Practices.Prism.Regions;
using YunBox2.Client.Infrastructure;

namespace YunBox2.Client
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    [Export]
    public partial class MainWindow : Window
    {
        [Import]
        private IRegionManager _regionManager;

        public MainWindow()
        {
            InitializeComponent();
            //ViewModel = new MainViewModel();
        }

        [Import]
        private MainViewModel ViewModel
        {
            get
            {
                return (MainViewModel) DataContext;
            }
            set
            {
                DataContext = value;
            }
        }


    }
}